package models_main

import (
	"fmt"
	"longmen/server/pkg/db/mysql/models"
	"time"
)

type UserBank struct {
	Id         int       `json:"id" gorm:"primaryKey;autoIncrement"` //int(10) unsigned NOT NULL AUTO_INCREMENT,
	Uid        int       `json:"uid"`                                //int(11) DEFAULT NULL COMMENT '用户id',
	Bank       string    `json:"bank"`                               //varchar(100) DEFAULT NULL COMMENT '银行名称',
	Name       string    `json:"name"`                               //varchar(100) DEFAULT NULL COMMENT '用户名字',
	Card       string    `json:"card"`                               //varchar(100) DEFAULT NULL COMMENT '银行卡号',
	Idcard     string    `json:"idcard"`                             //varchar(100) DEFAULT NULL COMMENT '身份证号码',
	Deleted    int       `json:"deleted"`                            //int(11) DEFAULT 0,
	CreateTime time.Time `json:"create_time"`                        //datetime DEFAULT NULL
	UpdateTime time.Time `json:"update_time"`                        //datetime DEFAULT NULL
}

func (UserBank) TableName() string {
	return fmt.Sprintf("%suser_bank", models.Prefix)
}
